package com.gking.processHarvest.service.ChatHistory;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gking.processHarvest.common.Res;
import com.gking.processHarvest.entity.ChatHistory;


public interface ChatHistoryService extends IService<ChatHistory> {


    /**
     * 更新接收用户未读消息数量
     *
     * @param userId 用户id
     * @return s
     */
    public boolean refreshNotReadCount(String userId);


    /**
     * 发送消息
     *
     * @param receiverId 接收者id
     * @param message    消息详情
     */
    public Res<String> sendChattingMessage(String receiverId, String message);


    /**
     * 检查 未读消息
     *
     * @return s
     */
    public Res<String> checkChattingNotReceiveMessage();
}
